import { LOGIN_SETTOKEN, LOGOUT } from '../actionsTypes'
const initValue = '111'
export default function login (state = initValue, { type, payload }) {
  if (type === LOGIN_SETTOKEN) {
    return payload
  } else if (type === LOGOUT) {
    return ''
  }
  return state
}
